package com.health.inquiry.server.service.impl;

import com.health.inquiry.common.domain.BodyPart;
import com.health.inquiry.common.domain.DmsCommonDisease;
import com.health.inquiry.server.service.BodyService;
import com.health.inquiry.server.mapper.BodyMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BodyServiceImpl implements BodyService {
    @Autowired
    private BodyMapper bodyMapper;

    /**
     * 身体部位列表
     * @return
     */
    @Override
    public List<BodyPart> selectSymptomList() {
        List<BodyPart> symptomList = bodyMapper.selectSymptomList();
        return symptomList;
    }


    /**
     * 根据部位id查找症状
     * @param bodyId
     * @return
     */
    @Override
    public List<DmsCommonDisease> selectDiseaseList(Long bodyId) {
        List<DmsCommonDisease> list = bodyMapper.selectDiseaseList(bodyId);
        return list;
    }


}
